<script>
import {defineComponent} from 'vue'
//引入混入
import myMixin from "@/mixin";
export default defineComponent({
  name: "Main",
  //使用混入
  mixins:[myMixin],
})
</script>

<template>
  <div class="main">
    我是主体组件
    {{ message}}
  </div>
</template>

<style scoped lang="less">
.main{
  width: 100%;
  height: 100px;
  background-color: #f89106;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
